package com.example.demo.controller;

import cn.hutool.extra.template.Template;
import cn.hutool.extra.template.TemplateConfig;
import cn.hutool.extra.template.TemplateEngine;
import cn.hutool.extra.template.TemplateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

/**
 * <p>
 *
 * </P>
 *
 * @author mx
 * @date 2021-08-12 18:38
 */
@RestController
@RequestMapping("api")
public class TestController {


    @GetMapping("hello")
    public String hello() {
        return "hello";
    }

    @GetMapping("world")
    public String world() {
        return "world";
    }

    @GetMapping("/aa")
    public String aa() {
        String a = "aa";
        String b = null;
        String c = "cc";
        if(b.equals(a)){
            a = b;
        }

        return a;
    }


    public static void main(String[] args) {
        Object object = new Object();
        String s = object.toString();
    }
    




}